#works with version 5.18.1

DEFAULT_LEANUX_PREFIX=/usr

pkg_configure_prepare(){
	LEANUX_JAIL_PERL_PREFIX="${LEANUX_PREFIX}"/jail-perl
	mkdir -p "${LEANUX_JAIL_PERL_PREFIX}"

	export PATH=${LEANUX_JAIL_PERL_PREFIX}/bin:${PATH}
	make distclean || true
}

pkg_configure(){
	./configure.gnu --prefix="${LEANUX_JAIL_PERL_PREFIX}"
}

pkg_compile(){
	make ${MAKE_JOBS}
}

pkg_install(){
	make ${MAKE_JOBS} install
}
